import request from '@/utils/request'

// 查询工单类型管理列表
export function listWorkSheetType(query) {
  return request({
    url: '/business/workSheetType/list',
    method: 'get',
    params: query
  })
}

// 查询工单类型管理详细
export function getWorkSheetType(id) {
  return request({
    url: '/business/workSheetType/' + id,
    method: 'get'
  })
}

// 新增工单类型管理
export function addWorkSheetType(data) {
  return request({
    url: '/business/workSheetType',
    method: 'post',
    data: data
  })
}

// 修改工单类型管理
export function updateWorkSheetType(data) {
  return request({
    url: '/business/workSheetType',
    method: 'put',
    data: data
  })
}

// 删除工单类型管理
export function delWorkSheetType(id) {
  return request({
    url: '/business/workSheetType/' + id,
    method: 'delete'
  })
}

// 查询工单类型列表ALL
export function getWorkSheetTypeAll() {
  return request({
    url: '/business/workSheetType/allList',
    method: 'get'
  })
}
